﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;

namespace Home.Domain.Entities
{
    /// <summary>
    /// 文章
    /// </summary>
    public class PArticle
    {
        public int Id { get; set; }
        /// <summary>
        /// 导航类别
        /// 1ASP.NET MVC
        /// 2Entity Framework
        /// 3HTML CSS
        /// 4.NET C#
        /// 5常用插件
        /// </summary>
        public int Navbar { get; set; }
        /// <summary>
        /// 标题
        /// </summary>
        [Required]
        [MaxLength(60)]
        public string Title { get; set; }
        /// <summary>
        /// 排序
        /// </summary>
        public int Sort { get; set; }
        /// <summary>
        /// 创建日期
        /// </summary>
        public DateTime CreateDate { get; set; }
        /// <summary>
        /// 修改日期
        /// </summary>
        public DateTime EditDate { get; set; }
        /// <summary>
        /// 文章列表
        /// </summary>
        public virtual ICollection<Article> Articles { get; set; }
    }
}
